package com.iterator.self;

import java.util.ArrayList;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        List<Company> companyList = new ArrayList<>();
        ComputerCompany computerCompany = new ComputerCompany();
        InfoCompany infoCompany = new InfoCompany();
        companyList.add(computerCompany);
        companyList.add(infoCompany);
        OutPutImpl outPut=new OutPutImpl(companyList);
        outPut.printCompany();
    }
}
